import { defineStore } from 'pinia';

export const useSettingStore = defineStore('setting', {
    state: () => ({
        sidebarCollapsed: false
    }),
    actions: {
        toggleSidebar() {
            this.sidebarCollapsed = !this.sidebarCollapsed;
        }
    },
    persist: {
        key: 'setting'
    }
});
